import request from "@/utils/request";

/**获取核量列表 */
export const getNuclearPage = props => {
  return request({
    url: "/quote/contract/nuclear/budget/getNuclearPage",
    method: "post",
    data: props
  });
};
/**获取核量列表V2 */
export const getNuclearPageV2 = props => {
  return request({
    url: "/quote/contract/nuclear/budget/getNuclearPageV2",
    method: "post",
    data: props
  });
};
/**获取退货单/换补信息 */
export const getNuclearReplaceReturnOrder = props => {
  return request({
    url: `/quote/contract/nuclear/budget/getNuclearReplaceReturnOrder/${props.nuclearId}`,
    method: "get"
  });
};
/**核量详情-获取变更单数据 */
export const getExchangeNuclearDetail = props => {
  return request({
    url: `/quote/contract/nuclear/budget/getExchangeNuclearDetail/${props.nuclearId}`,
    method: "get"
  });
};
/**撤销核量单关联的订单 */
export const cancelNuclearOrder = props => {
  return request({
    url: "/quote/contract/nuclear/budget/cancelNuclearOrder",
    method: "post",
    data: props
  });
};
/**删除订单 */
export const deleteNuclearOrder = props => {
  return request({
    url: "/quote/contract/nuclear/budget/deleteNuclearOrder",
    method: "post",
    data: props
  });
};
/**核量提交校验 */
export const validCommit = props => {
  return request({
    url: "/quote/contract/nuclear/budget/validCommit",
    method: "post",
    data: props
  });
};
